//
//  ZLPushToast.h
//  ZLCocoaKit_Example
//
//  Created by Dev on 2024/12/5.
//  Copyright © 2024 itzhaolei. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    /// 居上
    ZLPushToastVerticalAlignmentTop,
    /// 居中
    ZLPushToastVerticalAlignmentCenter,
    /// 居下
    ZLPushToastVerticalAlignmentBottom
} ZLPushToastVerticalAlignment;

NS_ASSUME_NONNULL_BEGIN

@interface ZLPushToast<T: UIView *>  : UIView

/// 内边距
@property (nonatomic, unsafe_unretained) UIEdgeInsets contentInset;
/// 间距
@property (nonatomic, unsafe_unretained) CGFloat spacing;

/// 向Toast管理器推送 [指定的视图] 在 [指定的父视图] 上进行展示
/// - Parameters:
///   - view: toast内容视图
///   - superView: 父视图
///   - alignment: 垂直对齐方式
+ (ZLPushToast *)push:(T)view inView:(__weak UIView *)superView alignment:(ZLPushToastVerticalAlignment)alignment;

@end

NS_ASSUME_NONNULL_END
